package com.cuitrip.resource.drawable;
import android.graphics.drawable.Drawable;
import android.graphics.Shader;
import android.graphics.RectF;
import android.graphics.Rect;
import android.graphics.Path;
import android.graphics.Paint;
import android.graphics.Matrix;
import android.graphics.ColorFilter;
import android.graphics.Canvas;
public class VerifiedSDrawable extends Drawable {
private static final float[] VIEW_BOX = { 0.000000f, 0.000000f, 26.000000f, 28.000000f };
private RectF rect = new RectF();
private Matrix matrix = new Matrix();
private Shader shader;
private Path p = new Path();
private Paint paint = new Paint();
@Override
public void draw(Canvas canvas) {
paint.setAntiAlias(true);
float viewBoxWidth = VIEW_BOX[2];
float viewBoxHeight = VIEW_BOX[3];
Rect bounds = getBounds();
if (viewBoxHeight <= 0 || viewBoxWidth <= 0 || bounds.width() <= 0 || bounds.height() <= 0) {
return;
}
canvas.save();
float viewBoxRatio = viewBoxWidth / (float) viewBoxHeight;
float boundsRatio = bounds.width() / (float) bounds.height();
float factorScale;
if (boundsRatio > viewBoxRatio) {
 // canvas larger than viewbox
 factorScale = bounds.height() / (float) viewBoxHeight;
} else {
 // canvas higher (or equals) than viewbox
 factorScale = bounds.width() / (float) viewBoxWidth;
}
int newViewBoxHeight = Math.round(factorScale * viewBoxHeight);
int newViewBoxWidth = Math.round(factorScale * viewBoxWidth);
int marginX = bounds.width() - newViewBoxWidth;
int marginY = bounds.height() - newViewBoxHeight;
canvas.translate(bounds.left, bounds.top);
canvas.translate(Math.round(marginX / 2f), Math.round(marginY / 2f));
canvas.clipRect(0, 0, newViewBoxWidth, newViewBoxHeight);
canvas.translate(-Math.round(factorScale * VIEW_BOX[0]), -Math.round(factorScale * VIEW_BOX[1]));
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
paint.setAlpha(255);
matrix.reset();
matrix.postTranslate(factorScale * 2.000000f, factorScale * 1.000000f);
canvas.save();
canvas.concat(matrix);
paint.setAlpha(255);
paint.setAlpha(255);
p.reset();
p.moveTo(factorScale * 0.000157f, factorScale * 3.174400f);
p.lineTo(factorScale * 1.592763f, factorScale * 19.110270f);
p.cubicTo(factorScale * 1.592763f, factorScale * 19.110270f, factorScale * 5.956130f, factorScale * 22.749479f, factorScale * 11.000157f, factorScale * 24.000000f);
p.cubicTo(factorScale * 16.044184f, factorScale * 22.749479f, factorScale * 20.407551f, factorScale * 19.110270f, factorScale * 20.407551f, factorScale * 19.110270f);
p.lineTo(factorScale * 22.000156f, factorScale * 3.174400f);
p.cubicTo(factorScale * 16.690695f, factorScale * 1.058133f, factorScale * 11.000157f, factorScale * 0.000000f, factorScale * 11.000157f, factorScale * 0.000000f);
p.cubicTo(factorScale * 11.000157f, factorScale * 0.000000f, factorScale * 5.308843f, factorScale * 1.058133f, factorScale * 0.000157f, factorScale * 3.174400f);
p.close();
p.moveTo(factorScale * 0.000157f, factorScale * 3.174400f);
paint.setShader(null);
paint.setColor(-17664);
paint.setAlpha(255);
paint.setStyle(Paint.Style.FILL);
canvas.drawPath(p, paint);
paint.setColor(-612829);
paint.setAlpha(255);
paint.setStrokeWidth(0.500000f);
paint.setStrokeCap(Paint.Cap.ROUND);
paint.setStyle(Paint.Style.STROKE);
canvas.drawPath(p, paint);
paint.setAlpha(255);
p.reset();
p.moveTo(factorScale * 1.674503f, factorScale * 19.177061f);

p.cubicTo(factorScale * 1.620533f, factorScale * 19.133562f, factorScale * 1.592606f, factorScale * 19.110270f, factorScale * 1.592606f, factorScale * 19.110270f);
p.lineTo(factorScale * 0.000000f, factorScale * 3.174400f);
p.cubicTo(factorScale * 5.308685f, factorScale * 1.058133f, factorScale * 11.000000f, factorScale * 0.000000f, factorScale * 11.000000f, factorScale * 0.000000f);
p.cubicTo(factorScale * 11.000000f, factorScale * 0.000000f, factorScale * 16.690538f, factorScale * 1.058133f, factorScale * 22.000000f, factorScale * 3.174400f);
p.lineTo(factorScale * 21.990866f, factorScale * 3.265806f);
p.cubicTo(factorScale * 20.988140f, factorScale * 3.465044f, factorScale * 9.219963f, factorScale * 6.053638f, factorScale * 1.697841f, factorScale * 19.136353f);
p.cubicTo(factorScale * 1.690028f, factorScale * 19.149940f, factorScale * 1.682249f, factorScale * 19.163511f, factorScale * 1.674503f, factorScale * 19.177061f);
p.close();
p.moveTo(factorScale * 1.674503f, factorScale * 19.177061f);
paint.setShader(null);
paint.setColor(-1);
paint.setAlpha(51);
paint.setStyle(Paint.Style.FILL);
canvas.drawPath(p, paint);
paint.setAlpha(255);
p.reset();
p.moveTo(factorScale * 11.000000f, factorScale * 0.000000f);
p.cubicTo(factorScale * 10.999914f, factorScale * 0.000016f, factorScale * 5.308646f, factorScale * 1.058149f, factorScale * 0.000000f, factorScale * 3.174400f);
p.lineTo(factorScale * 1.592606f, factorScale * 19.110270f);
p.cubicTo(factorScale * 1.592606f, factorScale * 19.110270f, factorScale * 5.955973f, factorScale * 22.749479f, factorScale * 11.000000f, factorScale * 24.000000f);
p.lineTo(factorScale * 11.000000f, factorScale * 0.000000f);
p.close();
p.moveTo(factorScale * 11.000000f, factorScale * 0.000000f);
paint.setShader(null);
paint.setColor(-1);
paint.setAlpha(76);
paint.setStyle(Paint.Style.FILL);
canvas.drawPath(p, paint);
paint.setAlpha(255);
p.reset();
p.moveTo(factorScale * 16.036409f, factorScale * 7.676814f);
p.cubicTo(factorScale * 15.418301f, factorScale * 7.041062f, factorScale * 14.416127f, factorScale * 7.041062f, factorScale * 13.798006f, factorScale * 7.676814f);
p.lineTo(factorScale * 9.880811f, factorScale * 11.705721f);
p.cubicTo(factorScale * 9.572258f, factorScale * 12.023074f, factorScale * 9.070173f, factorScale * 12.023074f, factorScale * 8.761608f, factorScale * 11.705721f);
p.lineTo(factorScale * 8.202007f, factorScale * 11.130159f);
p.cubicTo(factorScale * 7.583885f, factorScale * 10.494408f, factorScale * 6.581712f, factorScale * 10.494408f, factorScale * 5.963603f, factorScale * 11.130159f);
p.cubicTo(factorScale * 5.345468f, factorScale * 11.765911f, factorScale * 5.345468f, factorScale * 12.796656f, factorScale * 5.963590f, factorScale * 13.432407f);
p.lineTo(factorScale * 6.523191f, factorScale * 14.007969f);
p.cubicTo(factorScale * 8.068477f, factorScale * 15.597342f, factorScale * 10.573892f, factorScale * 15.597342f, factorScale * 12.119203f, factorScale * 14.007982f);
p.lineTo(factorScale * 16.036398f, factorScale * 9.979074f);
p.cubicTo(factorScale * 16.654531f, factorScale * 9.343309f, factorScale * 16.654531f, factorScale * 8.312566f, factorScale * 16.036409f, factorScale * 7.676814f);
p.lineTo(factorScale * 16.036409f, factorScale * 7.676814f);
p.close();
p.moveTo(factorScale * 16.036409f, factorScale * 7.676814f);
paint.setShader(null);
paint.setColor(-1);
paint.setAlpha(255);
paint.setStyle(Paint.Style.FILL);
canvas.drawPath(p, paint);
paint.setColor(-612829);
paint.setAlpha(255);
paint.setStrokeWidth(0.500000f);
paint.setStyle(Paint.Style.STROKE);
canvas.drawPath(p, paint);
canvas.restore();
canvas.restore();
}
@Override public void setAlpha(int alpha) { }
@Override public void setColorFilter(ColorFilter cf) { }

@Override public int getOpacity() { return 0; }
@Override public int getMinimumHeight() { return 11; }
@Override public int getMinimumWidth() { return 10; }
}

